﻿<%@ Page Language="C#" MasterPageFile="~/Wap/Shop/ShopSite.Master" AutoEventWireup="true" CodeBehind="ScoreLogList.aspx.cs" Inherits="ZLCMS.Web.Wap.Member.ScoreLogList" %>


<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">.ui-content{ padding:0px; margin:0px; }</style>
    <title>积分交易记录</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="pages" runat="server">

<div data-role="page" id="mypage">

	<div data-role="header">
	</div>
 	<div role="main" class="ui-content">
        <div class="scoreloglist">
            <h3>当前可用积分是：<font color="#ff0000"><%=CurrentMember.Score%></font></h3>
               <table class="gridtable" >
                       <thead>
                           <tr>
                               <th>日期</th>
                               <th>积分变更</th>
                               <th>当前积分</th>
                               <th>备注</th>
                           </tr>
                       </thead>
                       <tbody class="listviewHandler"></tbody>  
              </table>
            <button id="btnMore" data-icon="refresh" style="width: 95%; margin-left: auto; margin-right: auto;">显示更多</button>
        </div>
    </div>
</div>
<script src="/wap/lib/common/listviewHandler.js" type="text/javascript"></script>
<script type="text/javascript">

    $(function () {
        queryData();
    });

    function queryData() {
        var handler = $('.listviewHandler').listviewHandler();
        handler.initialize({
            loaderBtn: $('#btnMore'), //加载数据按钮（点击加载下一页）
            emptyHtml: '无记录', //无记录时显示此html
            itemTemplate: '<tr >' +
    '<td style="width:15%">{OptTime}</td>' +
    '<td style="width:25%">{Score}</td>' +
    '<td style="width:25%">{FinalScore}</td>' +
    '<td style="width:35%">{Remark}</td>' +
  '</tr>', //项模板
            itemHandler: function (data, itemTemplate, container) {//数据各项处理
                data.OptTime = data.OptTime.substr(0,10);
                return itemTemplate.format(data);
            },
            command: 'Member.LoadScoreLogList',
            parameter: { MemberAccount: '<%=CurrentMemberAccount %>' }
        });
        handler.nextPage();
    }
</script>

</asp:Content>
